//
//  Date+Extension.swift
//  PhotoBrowser
//
//  Created by zhangjianyun on 2021/2/20.
//

import UIKit

extension Date {
    public func string(withFormat format: String = "dd/MM/yyyy HH:mm") -> String {
        let dateFormatter = DateFormatter()
        dateFormatter.dateFormat = format
        return dateFormatter.string(from: self)
    }
}
